import java.util.ArrayList;
import java.util.List;

public class MatrixGenerator {
    public List<double[][]> lists = new ArrayList<double[][]>();

    public MatrixGenerator() {
        int l1 = (int) (Math.random()*1000+1);
        l1 = l1 - (l1 % 10);
        int l2 = (int) (Math.random()*1000+1);
        int r2 = (int) (Math.random()*1000+1);
        double[][] result = new double[l1][r2];
        double[][] s_result = new double[l1][r2];
        double[][] array1 = new double[l1][l2];
        for(int i = 0;i < array1.length;i++){
            for(int j = 0;j < array1[0].length;j++){
                int a = (int) (Math.random()*100);
                double b = a/10.0;
                array1[i][j] = b;
            }
        }
        double[][] array2 = new double[l2][r2];
        for(int i = 0;i < array2.length;i++){
            for(int j = 0;j < array2[0].length;j++){
                int a = (int) (Math.random()*100);
                double b = a/10.0;
                array2[i][j] = b;
            }
        }
        lists.add(array1);
        lists.add(array2);
        lists.add(result);
        lists.add(s_result);
    }
}

